﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DDD.Domain
{
    public interface IEntity
    {
        bool IsDeleted { get; }

        byte[] RowVersion { get; }


        object[] GetKey();

        void Delete();
    }

    public interface IEntity<TKey> : IEntity
    {
        TKey Id { get;  }
    }
}
